package cn.lsnu.heritage.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单表
 * @TableName order
 */
@TableName(value ="order")
@Data
public class Order implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private String orderNumber;

    /**
     * 发货地址
     */
    @TableField(value = "delivery_address")
    private String deliveryAddress;

    /**
     * 收货地址
     */
    @TableField(value = "receive_address")
    private String receiveAddress;

    /**
     * 交易数量
     */
    @TableField(value = "trade_number")
    private Integer tradeNumber;

    /**
     * 交易金额
     */
    @TableField(value = "trade_amount")
    private Integer tradeAmount;

    /**
     * 支付方
     */
    @TableField(value = "pay_user_id")
    private Integer payUserId;

    /**
     * 收款方
     */
    @TableField(value = "shop_id")
    private Integer shopId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}